import request from '@/utils/request'

// 获取折现率信息
export function getDiscount(data) {
  return request({
    url: '/discount/query',
    method: 'get',
    params: data
  })
}

// 修改折现率的信息
export function updateDiscount(data) {
  return request({
    url: '/discount/update',
    method: 'put',
    data: data
  })
}

// 删除折现率
export function deleteDiscount(id) {
  return request({
    url: '/discount/del/' + id,
    method: 'delete'
  })
}

// 添加折现率
export function addDiscount(data) {
  return request({
    url: '/discount/add',
    method: 'post',
    data
  })
}
